package com.xinghen.security.core.authentication;

import lombok.extern.slf4j.Slf4j;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

/**
 * @author xinghen
 * @ClassName: DefaultUserDetailsService
 * @Package: com.xinghen.security.core.authentication
 * @Description 默认的 UserDetailsService 实现
 * @create 2018/04/08 21:35
 */
@Slf4j
public class DefaultUserDetailsService implements UserDetailsService {

    @Override
    public UserDetails loadUserByUsername(String s) throws UsernameNotFoundException {
        log.warn("请配置 UserDetailsService 接口的实现.");
        throw new UsernameNotFoundException(s);
    }
}
